package com.honghu.cloud.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.honghu.cloud.bean.GoodsSpecification;
import com.honghu.cloud.common.dao.SupperDao;

/**
 * 商品规格
 * @author Administrator
 *
 */
public interface GoodsSpecificationDao extends SupperDao {

	void batchDelete(List<GoodsSpecification> objs);

	List<GoodsSpecification> selectObjByProperty(Map<String, Object> maps);

	GoodsSpecification selectByPrimaryKey(Long id);

	List<GoodsSpecification> queryPageList(Map<String, Object> maps);

	Integer selectCount(Map<String, Object> maps);

	List<GoodsSpecification> queryByIds(List<Long> ids);

	List<GoodsSpecification> queryPageListByParentIsNull(Map<String, Object> params);

	int save(GoodsSpecification goodsSpecification);

	void update(GoodsSpecification goodsSpecification);

	void delete(Long id);

	void saveGoodsSpecificationGoodsClassDetail(List<Map<String, Object>> gspgcIds);

	void saveEntity(GoodsSpecification obj);

	void updateById(GoodsSpecification obj);

	void deleteById(@Param(value="id")Long id);
	List<GoodsSpecification> queryPages(Map<String,Object> params);

	void batchDeleteByIds(List<Long> ids);

	List<GoodsSpecification> queryPagesWithNoRelations(Map<String,Object> params);

	List<GoodsSpecification> queryPageListWithNoRelations(Map<String,Object> params);

	void deleteGoodsSpecificationGoodsClassDetail(List<Map<String, Object>> gsgcds);

	/**
	 * 根据商品id查询商品属性规格集合
	 * @param goods_id
	 * @return
	 */
	List<GoodsSpecification> getGoodsIdSpecification(@Param("goods_id")Long goods_id);

}
